Repository navigation
Conversation
|
@kostya-sh thanks for fixing this. Can we add some tests cases? |
|
@SinghAsDev, adding test cases is not very straightforward task as the code relies on parquet-column.jar being available in the classpath and it hasn't been built yet when maven runs tests. Please let me know if you know of any good way to write tests for this functionality. |
|
Reading a file from parquet-column.jar is also questionable, why not parquet-common.jar where the Version class resides? What was the original reason for reading parquet-column pom.properties? |
|
@kostya-sh I think we can create test jar files with just a test META-INF, containing version, file in it. Makes sense? |
|
@SinghAsDev How exactly do you propose to do it? Commit a test jar file to Git and add it to the test classpath by specifying additionalClasspathElements for maven-surefire-plugin? This might work, if others are happy with this approach I will add a test. |
|
BTW reading Git hash from Manifest file doesn't work if manifest file is not available. E.g. in parquet files created with Spark, created_by looks like |
This change simplifies the way version is read: - version.properties is created at build time and packaged inside parquet-common.jar (along with pom.properties) - Version class reads both values VERSION_NUMBER and FULL_VERSION from this file
|
I've implemented fix in a different (I believe more robust) way. The way it works:
It also works when Manifest file is no longer present (like in Spark). |
|
+1 |
|
@kostya-sh, these changes are looking good. In the last sync-up, we talked about using a strategy like this to get the information, but then adding a class to parquet-generator that generates |
|
I have created another pull request: #213 I also made one minor improvement to the build related to parquet-generator: https://issues.apache.org/jira/browse/PARQUET-309 (#214) |
No description provided.